package cn.iocoder.yudao.module.student.dal.mysql.studentFeedback;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.student.controller.app.studentFeedback.vo.StudentFeedbackPageReqVO;
import cn.iocoder.yudao.module.student.dal.dataobject.studentFeedback.StudentFeedbackDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 实践项目反馈 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface StudentFeedbackMapper extends BaseMapperX<StudentFeedbackDO> {

    default PageResult<StudentFeedbackDO> selectPage(StudentFeedbackPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<StudentFeedbackDO>()
                .eqIfPresent(StudentFeedbackDO::getStudentId, reqVO.getStudentId())
                .likeIfPresent(StudentFeedbackDO::getTitle, reqVO.getTitle())
                .orderByDesc(StudentFeedbackDO::getId));
    }


}
